package com.voltmao.persistent.model;

import java.util.ArrayList;
import java.util.List;

public class ContractProviderGdbcCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer limitStart;

    protected Integer pageSize;

    public ContractProviderGdbcCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(Integer limitStart) {
        this.limitStart=limitStart;
    }

    public Integer getLimitStart() {
        return limitStart;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDataIdIsNull() {
            addCriterion("data_id is null");
            return (Criteria) this;
        }

        public Criteria andDataIdIsNotNull() {
            addCriterion("data_id is not null");
            return (Criteria) this;
        }

        public Criteria andDataIdEqualTo(String value) {
            addCriterion("data_id =", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotEqualTo(String value) {
            addCriterion("data_id <>", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThan(String value) {
            addCriterion("data_id >", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThanOrEqualTo(String value) {
            addCriterion("data_id >=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThan(String value) {
            addCriterion("data_id <", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThanOrEqualTo(String value) {
            addCriterion("data_id <=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLike(String value) {
            addCriterion("data_id like", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotLike(String value) {
            addCriterion("data_id not like", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdIn(List<String> values) {
            addCriterion("data_id in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotIn(List<String> values) {
            addCriterion("data_id not in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdBetween(String value1, String value2) {
            addCriterion("data_id between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotBetween(String value1, String value2) {
            addCriterion("data_id not between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andMinIsNull() {
            addCriterion("min is null");
            return (Criteria) this;
        }

        public Criteria andMinIsNotNull() {
            addCriterion("min is not null");
            return (Criteria) this;
        }

        public Criteria andMinEqualTo(Integer value) {
            addCriterion("min =", value, "min");
            return (Criteria) this;
        }

        public Criteria andMinNotEqualTo(Integer value) {
            addCriterion("min <>", value, "min");
            return (Criteria) this;
        }

        public Criteria andMinGreaterThan(Integer value) {
            addCriterion("min >", value, "min");
            return (Criteria) this;
        }

        public Criteria andMinGreaterThanOrEqualTo(Integer value) {
            addCriterion("min >=", value, "min");
            return (Criteria) this;
        }

        public Criteria andMinLessThan(Integer value) {
            addCriterion("min <", value, "min");
            return (Criteria) this;
        }

        public Criteria andMinLessThanOrEqualTo(Integer value) {
            addCriterion("min <=", value, "min");
            return (Criteria) this;
        }

        public Criteria andMinIn(List<Integer> values) {
            addCriterion("min in", values, "min");
            return (Criteria) this;
        }

        public Criteria andMinNotIn(List<Integer> values) {
            addCriterion("min not in", values, "min");
            return (Criteria) this;
        }

        public Criteria andMinBetween(Integer value1, Integer value2) {
            addCriterion("min between", value1, value2, "min");
            return (Criteria) this;
        }

        public Criteria andMinNotBetween(Integer value1, Integer value2) {
            addCriterion("min not between", value1, value2, "min");
            return (Criteria) this;
        }

        public Criteria andMaxIsNull() {
            addCriterion("max is null");
            return (Criteria) this;
        }

        public Criteria andMaxIsNotNull() {
            addCriterion("max is not null");
            return (Criteria) this;
        }

        public Criteria andMaxEqualTo(Integer value) {
            addCriterion("max =", value, "max");
            return (Criteria) this;
        }

        public Criteria andMaxNotEqualTo(Integer value) {
            addCriterion("max <>", value, "max");
            return (Criteria) this;
        }

        public Criteria andMaxGreaterThan(Integer value) {
            addCriterion("max >", value, "max");
            return (Criteria) this;
        }

        public Criteria andMaxGreaterThanOrEqualTo(Integer value) {
            addCriterion("max >=", value, "max");
            return (Criteria) this;
        }

        public Criteria andMaxLessThan(Integer value) {
            addCriterion("max <", value, "max");
            return (Criteria) this;
        }

        public Criteria andMaxLessThanOrEqualTo(Integer value) {
            addCriterion("max <=", value, "max");
            return (Criteria) this;
        }

        public Criteria andMaxIn(List<Integer> values) {
            addCriterion("max in", values, "max");
            return (Criteria) this;
        }

        public Criteria andMaxNotIn(List<Integer> values) {
            addCriterion("max not in", values, "max");
            return (Criteria) this;
        }

        public Criteria andMaxBetween(Integer value1, Integer value2) {
            addCriterion("max between", value1, value2, "max");
            return (Criteria) this;
        }

        public Criteria andMaxNotBetween(Integer value1, Integer value2) {
            addCriterion("max not between", value1, value2, "max");
            return (Criteria) this;
        }

        public Criteria andMoneyRatioIsNull() {
            addCriterion("money_ratio is null");
            return (Criteria) this;
        }

        public Criteria andMoneyRatioIsNotNull() {
            addCriterion("money_ratio is not null");
            return (Criteria) this;
        }

        public Criteria andMoneyRatioEqualTo(Integer value) {
            addCriterion("money_ratio =", value, "moneyRatio");
            return (Criteria) this;
        }

        public Criteria andMoneyRatioNotEqualTo(Integer value) {
            addCriterion("money_ratio <>", value, "moneyRatio");
            return (Criteria) this;
        }

        public Criteria andMoneyRatioGreaterThan(Integer value) {
            addCriterion("money_ratio >", value, "moneyRatio");
            return (Criteria) this;
        }

        public Criteria andMoneyRatioGreaterThanOrEqualTo(Integer value) {
            addCriterion("money_ratio >=", value, "moneyRatio");
            return (Criteria) this;
        }

        public Criteria andMoneyRatioLessThan(Integer value) {
            addCriterion("money_ratio <", value, "moneyRatio");
            return (Criteria) this;
        }

        public Criteria andMoneyRatioLessThanOrEqualTo(Integer value) {
            addCriterion("money_ratio <=", value, "moneyRatio");
            return (Criteria) this;
        }

        public Criteria andMoneyRatioIn(List<Integer> values) {
            addCriterion("money_ratio in", values, "moneyRatio");
            return (Criteria) this;
        }

        public Criteria andMoneyRatioNotIn(List<Integer> values) {
            addCriterion("money_ratio not in", values, "moneyRatio");
            return (Criteria) this;
        }

        public Criteria andMoneyRatioBetween(Integer value1, Integer value2) {
            addCriterion("money_ratio between", value1, value2, "moneyRatio");
            return (Criteria) this;
        }

        public Criteria andMoneyRatioNotBetween(Integer value1, Integer value2) {
            addCriterion("money_ratio not between", value1, value2, "moneyRatio");
            return (Criteria) this;
        }

        public Criteria andForDicFclxIsNull() {
            addCriterion("for_dic_fclx is null");
            return (Criteria) this;
        }

        public Criteria andForDicFclxIsNotNull() {
            addCriterion("for_dic_fclx is not null");
            return (Criteria) this;
        }

        public Criteria andForDicFclxEqualTo(String value) {
            addCriterion("for_dic_fclx =", value, "forDicFclx");
            return (Criteria) this;
        }

        public Criteria andForDicFclxNotEqualTo(String value) {
            addCriterion("for_dic_fclx <>", value, "forDicFclx");
            return (Criteria) this;
        }

        public Criteria andForDicFclxGreaterThan(String value) {
            addCriterion("for_dic_fclx >", value, "forDicFclx");
            return (Criteria) this;
        }

        public Criteria andForDicFclxGreaterThanOrEqualTo(String value) {
            addCriterion("for_dic_fclx >=", value, "forDicFclx");
            return (Criteria) this;
        }

        public Criteria andForDicFclxLessThan(String value) {
            addCriterion("for_dic_fclx <", value, "forDicFclx");
            return (Criteria) this;
        }

        public Criteria andForDicFclxLessThanOrEqualTo(String value) {
            addCriterion("for_dic_fclx <=", value, "forDicFclx");
            return (Criteria) this;
        }

        public Criteria andForDicFclxLike(String value) {
            addCriterion("for_dic_fclx like", value, "forDicFclx");
            return (Criteria) this;
        }

        public Criteria andForDicFclxNotLike(String value) {
            addCriterion("for_dic_fclx not like", value, "forDicFclx");
            return (Criteria) this;
        }

        public Criteria andForDicFclxIn(List<String> values) {
            addCriterion("for_dic_fclx in", values, "forDicFclx");
            return (Criteria) this;
        }

        public Criteria andForDicFclxNotIn(List<String> values) {
            addCriterion("for_dic_fclx not in", values, "forDicFclx");
            return (Criteria) this;
        }

        public Criteria andForDicFclxBetween(String value1, String value2) {
            addCriterion("for_dic_fclx between", value1, value2, "forDicFclx");
            return (Criteria) this;
        }

        public Criteria andForDicFclxNotBetween(String value1, String value2) {
            addCriterion("for_dic_fclx not between", value1, value2, "forDicFclx");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = "contract_provider_gdbc."+condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = "contract_provider_gdbc."+condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = "contract_provider_gdbc."+condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}